/**
 * 
 */
package com.nh.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 项目名称：NotoginsengManage
 * 
 * 类名称：NgVersion
 * 
 * 类描述： 版本信息
 * 
 * 创建人：李兴建
 * 
 * E-mail:lxj08193@163.com
 * 
 * 创建时间：2012-11-7 下午11:56:46
 * 
 * 修改人：李兴建
 * 
 * 修改时间：2012-11-7 下午11:56:46
 * 
 * 修改备注：
 * 
 * @version
 */
@Entity
@Table(name = "ng_version")
public class NgVersion extends BaseEntity {
	/**
	 * 版本号 1.1.0 
	 */
	private String version;
	/**
	 * 更新等级(0 普通升级，1,紧级更新,2,必须更新(更新完成才可以用))
	 */
	private Integer level;
	/**
	 * 下载地址
	 */
	private String downloadAddress;
	/**
	 * 客户端类型 (0:android 1: iphone 2:其它)
	 */
	private Integer customType;
	/**
	 * 名称
	 */
	private String versionTitle;
	/**
	 * 状态(0等待发布，1发布(可下载更新))
	 */
	private Integer state;
	/**
	 * 发布管理员
	 */
	private String createAdmin;
	/**
	 * 创建时间
	 */
	private Timestamp createTime;
	/**
	 * 发布时间
	 */
	private Timestamp publishTime;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 下载量
	 */
	private Integer downloadCount;

	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}

	/**
	 * @return the level
	 */
	public Integer getLevel() {
		return level;
	}

	/**
	 * @param level
	 *            the level to set
	 */
	public void setLevel(Integer level) {
		this.level = level;
	}

	/**
	 * @return the versionTitle
	 */
	@Column(name = "version_title")
	public String getVersionTitle() {
		return versionTitle;
	}

	/**
	 * @param versionTitle
	 *            the versionTitle to set
	 */
	public void setVersionTitle(String versionTitle) {
		this.versionTitle = versionTitle;
	}

	/**
	 * @return the customType
	 */
	@Column(name = "custom_type")
	public Integer getCustomType() {
		return customType;
	}

	/**
	 * @param customType
	 *            the customType to set
	 */
	public void setCustomType(Integer customType) {
		this.customType = customType;
	}

	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}

	/**
	 * @param state
	 *            the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	}

	/**
	 * @return the createAdmin
	 */
	@Column(name = "create_admin")
	public String getCreateAdmin() {
		return createAdmin;
	}

	/**
	 * @param createAdmin
	 *            the createAdmin to set
	 */
	public void setCreateAdmin(String createAdmin) {
		this.createAdmin = createAdmin;
	}

	/**
	 * @return the createTime
	 */
	@Column(name = "create_time")
	public Timestamp getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the publishTime
	 */
	@Column(name = "publish_time")
	public Timestamp getPublishTime() {
		return publishTime;
	}

	/**
	 * @param publishTime
	 *            the publishTime to set
	 */
	public void setPublishTime(Timestamp publishTime) {
		this.publishTime = publishTime;
	}

	/**
	 * @return the description
	 */
	@Column(name = "description", columnDefinition = "TEXT")
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the downloadAddress
	 */
	@Column(name = "download_address", columnDefinition = "TEXT")
	public String getDownloadAddress() {
		return downloadAddress;
	}

	/**
	 * @param downloadAddress
	 *            the downloadAddress to set
	 */
	public void setDownloadAddress(String downloadAddress) {
		this.downloadAddress = downloadAddress;
	}

	/**
	 * @return the downloadCount
	 */
	@Column(name = "download_count")
	public Integer getDownloadCount() {
		return downloadCount;
	}

	/**
	 * @param downloadCount
	 *            the downloadCount to set
	 */
	public void setDownloadCount(Integer downloadCount) {
		this.downloadCount = downloadCount;
	}

}
